﻿@using SunTzu.Utility;
@model form_exhibitor
@{
    ViewBag.Title = "参展登记审核";
    Layout = "~/Areas/Admin/Views/Shared/_RightLayout.cshtml";
    List<int> scopes = new List<int>();
    if (!string.IsNullOrEmpty(Model.Scope))
    {
        scopes.AddRange(Model.Scope.Split(',').Select(c => c.ParseToInt()));
    }
    List<int> intentions = new List<int>();
    if (!string.IsNullOrEmpty(Model.Intention))
    {
        intentions.AddRange(Model.Intention.Split(',').Select(c => c.ParseToInt()));
    }
    List<int> purposeNeeds = new List<int>();
    if (!string.IsNullOrEmpty(Model.PurposeNeed))
    {
        purposeNeeds.AddRange(Model.PurposeNeed.Split(',').Select(c => c.ParseToInt()));
    }
    List<int> purposeOffers = new List<int>();
    if (!string.IsNullOrEmpty(Model.PurposeOffer))
    {
        purposeOffers.AddRange(Model.PurposeOffer.Split(',').Select(c => c.ParseToInt()));
    }
}

	<form id="editForm" name="editForm" method="post" action="/FormExhibitor/Approve/?id=@Model.Id">
	<div id="panelBar">
		<ul class="toolBar">
			<li><input class="submit" type="submit" value="确认审核" /></li>
			<li><a class="back" href="javascript:void(0)"><span>返回</span></a></li>
		</ul>
	</div>
	<div id="edit">
		<ul>
            <li> 
				<span class="label">单位名称：</span>
                <span class="required">
                    <input id="Title" name="Title" type="text" value="@Model.Title" title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">单位地址：</span>
                <span class="required">
                    <input id="Address" name="Address" type="text" value="@Model.Address" title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">联系电话：</span>
                <span class="required">
                    <input id="Tel" name="Tel" type="text" value="@Model.Tel" title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">传真：</span>
                <span >
                    <input id="Fax" name="Fax" type="text" value="@Model.Fax"  title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">网址：</span>
                <span >
                    <input id="Url" name="Url" type="text" value="@Model.Url"  title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">企业简介：</span>
                <span class="required">
                    <input id="Description" name="Description" type="text" value="@Model.Description" title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">参展展品：</span>
                <span class="required">
                    <input id="Exhibit" name="Exhibit" type="text" value="@Model.Exhibit" title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">展场活动：</span>
                <span class="required">
                    <input id="Activity" name="Activity" type="text" value="@Model.Activity" title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">负责人：</span>
                <span class="required">
                    <input id="MainContacter" name="MainContacter" type="text" value="@Model.MainContacter" title="请输入" /> 
                    <input type="radio" value="True" name="MainContacterGender" @(Model.MainContacterGender ? "checked" : "") /> 先生
                    <input type="radio" value="False" name="MainContacterGender" @(!Model.MainContacterGender ? "checked" : "") /> 女士
                </span>
			</li> 
            <li> 
				<span class="label">负责人职务：</span>
                <span>
                    <input id="MainContacterTitle" name="MainContacterTitle" type="text" value="@Model.MainContacterTitle" title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">负责人移动电话：</span>
                <span class="required">
                    <input id="MainContacterMobile" name="MainContacterMobile" type="text" value="@Model.MainContacterMobile" title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">负责人电子邮箱：</span>
                <span class="required">
                    <input id="MainContacterEmail" name="MainContacterEmail" type="text" value="@Model.MainContacterEmail" title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">联系人：</span>
                <span class="required">
                    <input id="Contacter" name="Contacter" type="text" value="@Model.Contacter" title="请输入" /> 
                    <input type="radio" value="True" name="ContacterGender" @(Model.ContacterGender ? "checked" : "") /> 先生
                    <input type="radio" value="False" name="ContacterGender" @(!Model.ContacterGender ? "checked" : "") /> 女士
                </span>
			</li> 
            <li> 
				<span class="label">联系人职务：</span>
                <span class="required">
                    <input id="ContacterTitle" name="ContacterTitle" type="text" value="@Model.ContacterTitle" title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">联系人移动电话：</span>
                <span class="required">
                    <input id="ContacterMobile" name="ContacterMobile" type="text" value="@Model.ContacterMobile" title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">联系人电子邮箱：</span>
                <span class="required">
                    <input id="ContacterEmail" name="ContacterEmail" type="text" value="@Model.ContacterEmail" title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">展区选择：</span>
                <span>
                    <ul class="multiSelections">
                    @foreach (var area in CacheHelper<code_area>.GetAll().OrderBy(c => c.Order))
                    {
                        <li><input type="radio" @(area.Id == Model.AreaId ? "checked" : "") name="AreaId" value="@area.Id" /> @area.Title</li>
                    }
                    </ul>
                </span>
			</li> 
            <li> 
				<span class="label">展位订购：</span>
                <span class="required">
                    @(Model.BoothType == 0 ? string.Format("标准展位{0}个",Model.BoothAmount) : string.Format("光地展位{0}平米", Model.BoothAmount))
                </span>
			</li> 
            <li> 
				<span class="label">楣牌名称：</span>
                <span >
                    <input id="LintelName" name="LintelName" type="text" value="@Model.LintelName"  title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">业务范围：</span>
                <span >
                    <ul class="multiSelections">
                    @foreach (var scope in CacheHelper<code_scope>.GetAll().OrderBy(c => c.Order))
                    {
                        <li @(scope.Title == "其他" ? "class=multiSelectionInput" : "")>
                            <input type="checkbox" @(scopes.Contains(scope.Id) ? "checked" : "") name="Scope" value="@scope.Id" /> @scope.Title
                            @if (scope.Title == "其他")
                            {
                            <input type="text" name="ScopeOtherName" class="inputNormal" value="@Model.ScopeOtherName" />
                            }
                        </li>
                    }
                    </ul>
                </span>
			</li> 
            <li> 
				<span class="label">参展展品评选：</span>
                <span >
                    @*<input id="Contact2Phone" name="Contact2Phone" type="text" value="@Model.Contact2Phone"  title="请输入" /> *@
                </span>
			</li> 
            <li> 
				<span class="label">项目签约：</span>
                <span >
                    @*<input id="JoinTimes" name="JoinTimes" type="text" value="@Model.JoinTimes"  title="请输入" /> *@
                </span>
			</li> 
            <li> 
				<span class="label">参展统计调查：</span>
                <span class="required">
                    @*<input id="StandardCount" name="StandardCount" type="text" value="@Model.StandardCount" title="请输入" /> *@
                </span>
			</li> 
            <li> 
				<span class="label">发布组织采购代理合作：</span>
                <span class="required">
                    @*<input id="OpenSpace" name="OpenSpace" type="text" value="@Model.OpenSpace" title="请输入" /> *@
                </span>
			</li> 
            <li> 
				<span class="label">其他：</span>
                <span >
                    @*<input id="Requirement" name="Requirement" type="text" value="@Model.Requirement"  title="请输入" /> *@
                </span>
			</li> 
            <li> 
				<span class="label">参展目的（寻求）：</span>
                <span >
                    <ul class="multiSelections">
                    @foreach (var purpose in CacheHelper<code_purpose>.GetAll().OrderBy(c => c.Order))
                    {
                        <li @(purpose.Title == "其他" ? "class=multiSelectionInput" : "")>
                            <input type="checkbox" @(purposeNeeds.Contains(purpose.Id) ? "checked" : "") name="PurposeNeed" value="@purpose.Id" /> @purpose.Title
                        </li>
                    }
                    </ul>
                </span>
			</li> 
            <li> 
				<span class="label">参展目的（提供）：</span>
                <span >
                    <ul class="multiSelections">
                    @foreach (var purpose in CacheHelper<code_purpose>.GetAll().OrderBy(c => c.Order))
                    {
                        <li @(purpose.Title == "其他" ? "class=multiSelectionInput" : "")>
                            <input type="checkbox" @(purposeOffers.Contains(purpose.Id) ? "checked" : "") name="PurposeOffer" value="@purpose.Id" /> @purpose.Title
                        </li>
                    }
                    </ul>
                </span>
			</li> 
            <li> 
				<span class="label">是否加入高校文化创意设计大赛企业库？：</span>
                <span >
                    <input type="radio" name="IsJoinEntDb" @(Model.IsJoinEntDb ? "checked" : "") value="True" /> 是
                    <input type="radio" name="IsJoinEntDb" @(!Model.IsJoinEntDb ? "checked" : "") value="False"/> 否
                </span>
			</li> 
            <li> 
				<span class="label">是否邀请客商参会？：</span>
                <span >
                    <input type="radio" name="IsInviteVistor" @(Model.IsInviteVistor ? "checked" : "") value="True" /> 是
                    <input type="radio" name="IsInviteVistor" @(!Model.IsInviteVistor ? "checked" : "") value="False"/> 否
                </span>
			</li> 
            <li> 
				<span class="label">推荐媒体（网站）：</span>
                <span >
                    <input id="MediaWebSite" name="MediaWebSite" type="text" value="@Model.MediaWebSite"  title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">推荐媒体（期刊）：</span>
                <span >
                    <input id="MediaPublication" name="MediaPublication" type="text" value="@Model.MediaPublication"  title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">推荐媒体（杂志）：</span>
                <span >
                    <input id="MediaJournal" name="MediaJournal" type="text" value="@Model.MediaJournal"  title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">推荐媒体（其他）：</span>
                <span >
                    <input id="MediaOther" name="MediaOther" type="text" value="@Model.MediaOther"  title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">大陆产业落地意向：</span>
                <span >
                    <ul class="multiSelections">
                    @foreach (var intention in CacheHelper<code_intention>.GetAll().OrderBy(c => c.Order))
                    {
                        <li @(intention.Title == "其他" ? "class=multiSelectionInput" : "")>
                            <input type="checkbox" @(intentions.Contains(intention.Id) ? "checked" : "") name="Intention" value="@intention.Id" /> @intention.Title
                            @if (intention.Title == "其他")
                            {
                            <input type="text" name="IntentionOtherName" class="inputNormal" value="@Model.IntentionOtherName" />
                            }
                        </li>
                    }
                    </ul>
                </span>
			</li> 
            <li> 
				<span class="label">展品展后处理：</span>
                <span >
                    <ul class="multiSelections">
                    @foreach (var treatment in CacheHelper<code_treatment>.GetAll().OrderBy(c => c.Order))
                    {
                        <li><input type="radio" @(treatment.Id == Model.TreatmentId ? "checked" : "") name="TreatmentId" value="@treatment.Id" /> @treatment.Title</li>
                    }
                    </ul>
                </span>
			</li> 
            <li> 
				<span class="label">公开企业信息：</span>
                <span >
                    <input type="radio" name="IsOpenToSite" @(Model.IsOpenToSite ? "checked" : "") value="True" /> 是
                    <input type="radio" name="IsOpenToSite" @(!Model.IsOpenToSite ? "checked" : "") value="False"/> 否
                </span>
			</li> 
            <li> 
				<span class="label">接收邮件：</span>
                <span >
                    <input type="radio" name="IsReceiveEmail" @(Model.IsReceiveEmail ? "checked" : "") value="True" /> 是
                    <input type="radio" name="IsReceiveEmail" @(!Model.IsReceiveEmail ? "checked" : "") value="False"/> 否
                </span>
			</li> 
		</ul>
	</div>
	</form>
